package com.chenfan.finance.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chenfan.finance.model.TocAlipayMappingExpend;
import com.chenfan.finance.model.TocAlipayMappingIncome;
import com.chenfan.finance.model.TocCharge;
import com.chenfan.finance.model.dto.TocChargeQuery;
import com.chenfan.finance.model.vo.CfChargeListVO;
import com.chenfan.finance.model.vo.TimeRange;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 支付宝收入mapping表 Mapper 接口
 * </p>
 *
 * @author lizhejin
 * @since 2020-12-24
 */
@Repository
public interface TocAlipayMappingIncomeMapper extends BaseMapper<TocAlipayMappingIncome> {

    List<TocAlipayMappingIncome> getInputList(@Param("start") LocalDateTime start, @Param("end") LocalDateTime end,@Param("shop") int shop);

    List<TocAlipayMappingExpend> getOutputList(@Param("start") LocalDateTime start, @Param("end") LocalDateTime end,@Param("shop") int shop);

    List<TocAlipayMappingIncome> getDataForExport(@Param("timeRange") TimeRange timeRange);

    List<TocCharge> chargeListIn(TocChargeQuery tocChargeQuery);

    List<TocCharge> chargeListOut(TocChargeQuery tocChargeQuery);
}
